import { request } from "@/utils/request"

export const getUserPaginate = (params) => request({
	url: `user_fare_log/getUserPaginate`,
	method: "GET",
	params,
})
export const getUserFareLogDetails = (id) => request({
	url: `user_fare_log/getDetails`,
	method: "GET",
	params: { id },
})
export const addUserFareLog = (data) => request({
	url: `user_fare_log/postAdd`,
	method: "POST",
	data
})
export const editUserFareLog = (data) => request({
	url: `user_fare_log/postEdit`,
	method: "POST",
	data
})
export const deleteUserFareLog = (id) => request({
	url: `user_fare_log/postDelete`,
	method: "POST",
	data: { id },
})